<template>
  <div class="rb-button" :style="`background-image:${color}`">
    <slot></slot>
  </div>
</template>

<script setup>
const props = defineProps({
  type: {
    type: String,
    default: "primary",
  },
});
const color = computed(() => {
  switch (props.type) {
    case "primary":
      return "var(--blue-gradient-color)";
    case "green":
      return "var(--green-gradient-color)";
  }
});
</script>

<style lang='scss' scoped>
.rb-button {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: normal;
  border-radius: 1000px;
  cursor: pointer;
}
</style>